<?php
/*
 * Created on 11-11-2011 by Michal Piotrowski
 */
?>
Email;Siła bólu;Nieprzyjemność;<?php
	foreach($stats[0]['Emotion'] as $em) echo $em['name'].';';
	foreach($stats[0]['Adjective'] as $adj) echo $adj['name'].';';?>

<?php foreach($stats as $stat):?>
<?php echo $stat['Survey']['email'];?>;<?php echo $stat['Survey']['pain_strength'];?>;<?php echo $stat['Survey']['pain_nestiness'];?>;<?php
	foreach($stat['Emotion'] as $em) echo $em['EmotionsSurvey']['value'].';';
	foreach($stat['Adjective'] as $adj) echo $adj['AdjectivesSurvey']['value'].';'?>

<?php endforeach;?>